//
//  UILabel+addition.m
//  侠客行
//
//  Created by laibingqiang on 16/11/8.
//  Copyright © 2016年 laibingqiang. All rights reserved.
//

#import "UILabel+addition.h"

@implementation UILabel (addition)

- (instancetype)initWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor
{
    
    if (self = [super init]) {
        
        self.text = text;
        
        self.font = font;
        
        self.textColor = textColor;
        
        [self sizeToFit];
    }
    
    return self;
}
@end
